HAL HSEM migration: List of applicable concepts

This section provides information about the HAL HSEM applicable architecture concepts.

Concepts for HSEM

Concept

Description

HAL implementation with LL inline functions

HAL HSEM APIs now rely on LL services instead of performing direct register access.

Define statements and enumerations redirected to LL equivalents

HAL HSEM define statements and enumerations are based on LL define statements.

Removal of hardware-related macros in HAL2

All hardware macros have been removed from the HAL HSEM driver, and equivalent services are ensured through the LL APIs.

Revised and optimized HAL API status returns

The HAL HSEM functions were updated to return:

  • HAL_ERROR: in case of an error.

  • HAL_OK: in case of a successfully completed operation.

Replaced TypeDef suffix with _t in type names

All TypeDef parts of the HAL HSEM driver have been removed and replaced by _t.

Assertion implementation and usage in HAL1

The parameter is checked using ASSERT_DBG_PARAM macro.